package com.project.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.project.bean.PageBean;
import com.project.service.ICommentService;

@Controller
public class CommentController {
	@Autowired
private ICommentService commentService;
	@RequestMapping("/comment")
public String showComment(int pid,int page,int size,ModelMap map) {
	PageBean pageBean=commentService.showCommentsByPage(pid, page, size);
	map.addAttribute("pageBean", pageBean);
	return "/student_idex_self.html";
	
}	
}
